package com.xlhj.boot.webservice.rs.server.service.impl;

import com.xlhj.boot.webservice.rs.api.entity.UserInfo;
import com.xlhj.boot.webservice.rs.api.service.UserInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: caijliu
 * @Date: 06/12/2021 14:25
 * @Description TODO
 * @Vsersion: 0.0.1
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Override
    public void saveUserInfo(UserInfo userInfo) {
        System.out.println("保存用户信息成功!" + userInfo.toString());
    }

    @Override
    public void updateUserInfo(UserInfo userInfo) {
        System.out.println("更新用户信息成功!" + userInfo.toString());
    }

    @Override
    public void deleteUserById(Long id) {
        System.out.println("删除用户信息成功!" + id);
    }

    @Override
    public List<UserInfo> findAllUser() {
        return null;
    }

    @Override
    public UserInfo findUserInfoById(Long id) {
        return UserInfo.builder()
                .id(1L)
                .username("zhangsan")
                .password("123456")
                .build();
    }
}
